package com.iwhalecloud.bss.kite.cucc.service.scene.loader.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iwhalecloud.bss.kite.cucc.client.api.scene.IInitSceneOfferInstService;
import com.iwhalecloud.bss.kite.cucc.client.dto.pos.KitePosDTO;
import com.iwhalecloud.bss.kite.cucc.service.scene.loader.CuccInstLoader;
import com.ztesoft.bss.common.bo.LoginInfo;

@Service
public class CuccAdditionalOfferInstLoader extends CuccInstLoader {

    @Autowired
    private IInitSceneOfferInstService initSceneOfferInstService;
    
    @Override
    public void loadInst(String sceneInstId, String operType, String custId, String staffId, KitePosDTO kitePosDTO, LoginInfo loginInfo) {
        this.initSceneOfferInstService.initAdditionalOfferInst(sceneInstId, custId, staffId, kitePosDTO.getGoods(), loginInfo);
    }

}
